<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://localhost:8080/portal" />
<title>Test_SNF_PRL_35_ChangeApplicationWhenEditPropertiesOfNodeInPortalNavigation</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Test_SNF_PRL_35_ChangeApplicationWhenEditPropertiesOfNodeInPortalNavigation</td></tr>
</thead><tbody>
<tr>
	<td>open</td>
	<td>/portal/classic</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Edit Node page's properties in portal navigation--</td>
	<td></td>
</tr>
<tr>
	<td>windowMaximize</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Sign in</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>username</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>username</td>
	<td>root</td>
</tr>
<tr>
	<td>type</td>
	<td>password</td>
	<td>gtn</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//div[@id='UIPortalLoginFormAction']</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>--Add new node for portal --</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Site</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='UISiteManagement']//a[contains(@href,&quot;classic&quot;) and text()=&quot;Edit Navigation&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='UISiteManagement']//a[contains(@href,&quot;classic&quot;) and text()=&quot;Edit Navigation&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Add Node</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Add Node</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>name</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>name</td>
	<td>Test_SNF_PRL_35</td>
</tr>
<tr>
	<td>type</td>
	<td>label</td>
	<td>Test_SNF_PRL_35</td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Page Selector--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[text()='Page Selector']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[text()='Page Selector']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Search and Select Page</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Search and Select Page</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//form[@id='UIPageSearchForm']/div[2]/input</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>//form[@id='UIPageSearchForm']/div[2]/input</td>
	<td>Community Management</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>searchOption</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>searchOption</td>
	<td>label=group</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//a[@title='Quick Search']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//a[@title='Quick Search']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>xpath=//img[@title='Select Page']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>xpath=//img[@title='Select Page']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Save to finish create new node--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- View new node--</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Test_SNF_PRL_35</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Test_SNF_PRL_35</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Change application when edit page properties of node --</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Site</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='UISiteManagement']//a[contains(@href,&quot;classic&quot;) and text()=&quot;Edit Navigation&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='UISiteManagement']//a[contains(@href,&quot;classic&quot;) and text()=&quot;Edit Navigation&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//a[@title='Test_SNF_PRL_35']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//a[@title='Test_SNF_PRL_35']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>xpath=//a[@title='Test_SNF_PRL_35']</td>
	<td></td>
</tr>
<tr>
	<td>mouseDownRight</td>
	<td>xpath=//a[@title='Test_SNF_PRL_35']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Edit Node's Page</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Edit Node's Page</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- View layout of node before Change application--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Switch View mode</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Switch View mode</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>User Management</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>User Management</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Group Management</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Group Management</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Membership Management</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Membership Management</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Switch View mode</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Switch View mode</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Drag &amp; drop applcation in portal--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Gadgets</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Gadgets</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='Gadgets/Calculator']/div/div/div[1]/div[1]</td>
	<td>UIPortalApplication</td>
</tr>
<tr>
	<td>dragAndDropToObject</td>
	<td>//div[@id='Gadgets/Calculator']/div/div/div[1]/div[1]</td>
	<td>UIPortalApplication</td>
</tr>
<tr>
	<td>echo</td>
	<td>-- View application after drag &amp; drop in portal--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Switch View mode</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Switch View mode</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>User Management</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>User Management</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Group Management</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Group Management</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Membership Management</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Membership Management</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Return to normal view --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Switch View mode</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Switch View mode</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>--Edit application --</td>
	<td></td>
</tr>
<tr>
	<td>mouseOver</td>
	<td>//div[text()='Calculator']/following-sibling::a[@title='Edit Portlet']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[text()='Calculator']/following-sibling::a[@title='Edit Portlet']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[text()='Calculator']/following-sibling::a[@title='Edit Portlet']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>title</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>title</td>
	<td>Test_SNF_PRL_35</td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Choose Select Icon tab --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='UIMaskWorkspace']//div[text()=&quot;Select Icon&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='UIMaskWorkspace']//div[text()=&quot;Select Icon&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//form[@id='UIPortletForm']/div[3]/div/div/div[2]/div[2]/div/a[1]/div</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//form[@id='UIPortletForm']/div[3]/div/div/div[2]/div[2]/div/a[1]/div</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Choose Decoration Themes--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='UIMaskWorkspace']//div[text()=&quot;Decoration Themes&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='UIMaskWorkspace']//div[text()=&quot;Decoration Themes&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[text()='Pink Simple']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[text()='Pink Simple']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Save And Close</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Save And Close</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- View after change something in application --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Switch View mode</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Switch View mode</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@class='PortletIcon AcrobatFile']</td>
	<td></td>
</tr>
<tr>
	<td>verifyElementPresent</td>
	<td>//div[@class='PortletIcon AcrobatFile']</td>
	<td>Test_SNF_PRL_35</td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Return to normail view --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Switch View mode</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Switch View mode</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Move position of application --</td>
	<td></td>
</tr>
<tr>
	<td>mouseOver</td>
	<td>//div[@title=&quot;Hold this area to drag this portlet&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>dragAndDropToObject</td>
	<td>//div[@title=&quot;Hold this area to drag this portlet&quot;]</td>
	<td>//div[contains(text(),&quot;Test_SNF_PRL_35&quot;)]</td>
</tr>
<tr>
	<td>echo</td>
	<td>-- View after change position of application --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Switch View mode</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Switch View mode</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>UIPortalApplication</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>UIPortalApplication</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Switch View mode</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Switch View mode</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Delete application --</td>
	<td></td>
</tr>
<tr>
	<td>mouseOver</td>
	<td>//div[text()='Test_SNF_PRL_35']/following-sibling::a[@title='Delete Portlet']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[text()='Test_SNF_PRL_35']/following-sibling::a[@title='Delete Portlet']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[text()='Test_SNF_PRL_35']/following-sibling::a[@title='Delete Portlet']</td>
	<td></td>
</tr>
<tr>
	<td>waitForConfirmationPresent</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>assertConfirmation</td>
	<td>Are you sure to delete this portlet?</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='UIPageEditor']//a[@title='Finish']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='UIPageEditor']//a[@title='Finish']</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Close Navigation Management form --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- View node after change application --</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//div[3]/div/div/div/div/div/div/a</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Delete this node--</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Site</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='UISiteManagement']//a[contains(@href,&quot;classic&quot;) and text()=&quot;Edit Navigation&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='UISiteManagement']//a[contains(@href,&quot;classic&quot;) and text()=&quot;Edit Navigation&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[8]/div/a</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[8]/div/a</td>
	<td></td>
</tr>
<tr>
	<td>pause</td>
	<td>1000</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>xpath=//a[@title='Test_SNF_PRL_35']</td>
	<td></td>
</tr>
<tr>
	<td>mouseDownRight</td>
	<td>xpath=//a[@title='Test_SNF_PRL_35']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Delete Node</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Delete Node</td>
	<td></td>
</tr>
<tr>
	<td>waitForConfirmationPresent</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>assertConfirmation</td>
	<td>Are you sure you want to delete this node?</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementNotPresent</td>
	<td>xpath=//a[@title='Test_SNF_PRL_35']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Sign out</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Sign out</td>
	<td></td>
</tr>
</tbody></table>
</body>
</html>
